import os

# coding: utf8
# try something like
def index(): return dict(message="hello from plugin_font_arimo.py")

def display_static():
    """
    Displays app_name/plugin_uc_flatpage/static/
    """
    file_name=request.args(0) or redirect(URL('index'))    
#    file_path = os.path.join(plugin_uc_flatpage_cwd,'applications',request.application, 'static', 'plugin_font_arimo', file_name)
    file_path = os.path.join('.', 'applications', request.application, 'static', 'plugin_font_arimo', file_name)
    if os.path.exists(file_path):
        content=open(file_path,'r').read()
        body = MARKMIN(content)
    else:
        body = MARKMIN('file not found')
    return dict(body=body)

def failed_authorization():
    if len(request.args):
        message=str(request.args[0])
    else:
        message=T("not authorized")
    return dict(message=message)
